package com.xp.code.servicesImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xp.code.daoImpl.UserInfoDao;
import com.xp.code.services.IUserInfoService;
import com.xp.code.vo.UserInfoVO;

/**
 * 
 * @author HAHA
 *
 */
@Service("userInfoService")
@Transactional(rollbackFor=java.lang.Exception.class)
public class UserInfoService implements IUserInfoService {

	@Resource(name="userInfoDao")
	private UserInfoDao userInfoDao;
	
	public UserInfoService() {
		
	}

	public UserInfoDao getUserInfoDao() {
		return userInfoDao;
	}

	public void setUserInfoDao(UserInfoDao userInfoDao) {
		this.userInfoDao = userInfoDao;
	}
	
	
	public UserInfoVO addUserInfos(UserInfoVO userInfoVO) throws Exception {
		return userInfoDao.addUserInfos(userInfoVO);
	}

}
